package service.Supper.impl;

import dao.Supper.SuperGoodsDao;
import dao.Supper.impl.SuperGoodsImpl;
import pojo.All;
import service.Supper.SuperGoodsService;

import java.util.List;

public class SuperGoodsServiceImpl implements SuperGoodsService {
    private  SuperGoodsDao superGoodsDao;
    public SuperGoodsServiceImpl(){
        superGoodsDao = new SuperGoodsImpl();
    }
    @Override
    public int getTotalCount(Long id,String smallName,String goodsName ) {
        return superGoodsDao.getTotalCount(id,smallName,goodsName);
    }

    @Override
    public List<All> selGoods(int currentPage, int pageSize,Long id,String smallName,String goodsName ) {
        return superGoodsDao.selGoods(currentPage,pageSize,id,smallName,goodsName);
    }

    @Override
    public All SelById(Long id) {
        return superGoodsDao.SelById(id);
    }
}
